
<html>
<head>
<title>信诚影像作业系统</title>
</head>


<body  bgcolor=#E1E1E1 leftmargin=0 topmargin=0 onload="javascript:refresh();">
<table width='100%' border='0' class=body cellspacing='0' cellpadding='1' bordercolorlight='#949494' bordercolordark='#FFFFFF' >
	<thead bgcolor='#336699' style='color:#E1E1E1'>
		<th colspan=2 align=left>>>影像列表&nbsp:&nbsp;总数：</th>
		<th colspan=6 align=left id="msg" >&nbsp;</th>
	</thead>
</table>
<table width='100%' border='0' class=body cellspacing='0' cellpadding='1' bordercolorlight='#949494' bordercolordark='#FFFFFF' >
	<tr>
		<td align = center id="querymessage">
			<font color=red>没有满足条件的影像</font>
			<input type="image" name="imgView" width=20 height=20  src="/images/IT.gif" value="" onclick="javascript:showImage_newObject('20200407165118015260', 'NB');" title="打开影像文件浏览" />

		</td>
	</tr>
<div id="imgObjDiv">&nbsp;</div>
</table>
<script language="javascript">

	function ChangePage(flag)
	{
		if (flag == "isFirst") {
			imgpageno.value = "1";
			refreshList();
		}
		if (flag == "isPer") {
			imgpageno.value = imgpageno.value - 1;
			refreshList();
		}
		if (flag == "isNext") {
			imgpageno.value = imgpageno.value -1 + 2;
			refreshList();
		}
		if (flag == "isLast") {
			imgpageno.value = "<%=iPageCount%>";
			refreshList();
		}
		if (flag == "isJump") {
			imgpageno.value = imgpageno.value;
			refreshList();
		}

	}

//显示影像索引
	function showImageInfo(sBusiType, sPolicyNo, sBusiNo, sSubbusitype,
						   sProductType, sDocTyp, sStockID,
						   sGroupNo, sScanDate, sScanTime, sUpdateflag,
						   sIsPrint, sIshcprint, sVersion, sItemid, sPidString,
						   sScanSite,sReportDate,sAgentID,sAgentName,sBankID){
            	parent.imageinfo.showImageInfo(sBusiType, sPolicyNo, sBusiNo, sSubbusitype,
						   sProductType, sDocTyp, sStockID,
						   sGroupNo, sScanDate, sScanTime, sUpdateflag,
						   sIsPrint, sIshcprint, sVersion, sItemid, sPidString,
						   sScanSite,sReportDate,sAgentID,sAgentName,sBankID);
	}

//显示notelog
	function openNoteLog(url){
    	window.open(url,"NoteLog","height=480,width=600,top=50,left=50,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
	}
//显示notelog
	function openModiLog(url){
    	window.open(url,"ModiLog","height=480,width=600,top=50,left=50,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
	}

        //查看影象——新版影像查看器客户端 kaka 2013-1-31
var imgObjDiv = document.getElementById("imgObjDiv");
imgObjDiv.innerHTML = "<object id='imageDisplay' classid='clsid:DF02961E-E2F3-41a6-AACB-010EF4A90F9F'></object>";

        function showImage_newObject(strPid, busiType){
			var imageDisplay;
		    var str = "";
			str = busiType + "," + strPid;

            try{
				if (str!=",") {
					imageDisplay = document.getElementById("imageDisplay");//alert(str);
					imageDisplay.DisplayFile(str, "http://128.232.6.242:9080/CM8WebService/services/CMDownService");
				}
            }catch(e){
				alert("页面加载错误："+e);
            }
			//激活多选操作
			btnView_newObject.disabled="";
            btnSel.disabled="";
            if(chkView.length==undefined){
                chkView.disabled="";
            }
            else{
            	for( i=0;i<chkView.length;i++){
               		chkView[i].disabled="";
                }
            }
        }

        //批量查看影象——新版影像查看器客户端 kaka 2013-1-31
        function batchShow_newObject(){
            if(chkView.length==undefined){
                if(chkView.checked){
					var imageDisplay;
					var str = "";
					str = hbusitype.value + "," + chkView.value;

					try{
						if (str!=",") {
							imageDisplay = document.getElementById("imageDisplay");
							imageDisplay.DisplayFile(str, "<%=imgServerUrl%>");
						}
					}catch(e){
						alert("页面加载错误："+e);
					}
                }
            }else{
				var imageDisplay;
				var str = "";
                for( i=0;i<chkView.length;i++){
                    var i;
                    if(chkView[i].checked){
						if (str=="") {
							str = hbusitype[i].value + "," + chkView[i].value;
						} else {
							str = str + "|" + hbusitype[i].value + "," + chkView[i].value;
						}
                    }
                }

				try{
					if (str!=",") {
						imageDisplay = document.getElementById("imageDisplay");
						imageDisplay.DisplayFile(str, "<%=imgServerUrl%>");
					}
				}catch(e){
					alert("页面加载错误："+e);
				}
            }
        }
//全选
        function allsel(){
            if(chkView!=undefined){
        	if(btnSel.value=="全选"){
                    if(chkView.length==undefined){
                        chkView.checked=true;
                    }
                    else{
                	for(i=0;i<chkView.length;i++){
               			chkView[i].checked=true;
                	}
                    }
                    btnSel.value="清空";

        	}
        	else{
                    if(chkView.length==undefined){
                        chkView.checked=false;
                    }
                    else{
                	for(i=0;i<chkView.length;i++){
            			chkView[i].checked=false;
                	}
                    }
                    btnSel.value="全选";
        	}
            }
        }
	function refreshList() {
	}

//刷新工作列表
	function refresh(){
	}

	var printWin = null;
	var printAlive = false;
	function printDoc(itemlist, inAppletViewer,appletWinURL)
	{
            try{
            	printWin.document.applets[0].printDocument(itemlist);
                printWin.focus();
            }catch(e){
		openPrintViewer(appletWinURL, 'status=0;help=0;dialogWidth=600px;dialogHeight=400px;resizable=no;scroll=no');
            }
	}
	function openPrintViewer( appletWinURL, windowFeatures )
	{
		printWin = window.open(appletWinURL, "printWin", windowFeatures);
		printAlive = "true";
		setCookie("printAlive", "true");
	}
	function setCookie(name, value)
	{
		var argv = setCookie.arguments;
		var argc = setCookie.arguments.length;
		var expires = (argc > 2) ? argv[2] : null;
		var path = (argc > 3) ? argv[3] : null;
		var domain = (argc > 4) ? argv[4] : null;
		var secure = (argc > 5) ? argv[5] : false;
		document.cookie = name + "=" + escape (value) +
			((expires == null) ? "" : ("; expires=" +expires.toGMTString())) +
			((path == null) ? "" : ("; path=" + path)) +
			((domain == null) ? "" : ("; domain=" + domain)) +
			((secure == true) ? "; secure" : "");
	}

//itemlist格式：displayname1~SX~busitype1~BI~im_itemid1~ITEMID~displayname2~SX~busitype2~BI~im_itemid2~ITEMID~...
function printImage(){
  var itemlist = "";

  if(chkView.length==undefined){
    if(chkView.checked){
	itemlist += imagename.value + "~SX~" + hbusitype.value + "~BI~" + chkView.value;
    }
  }
  else {
	for( i=0;i<chkView.length;i++){
	    var i;
	    if(chkView[i].checked){
		if (itemlist != "") {
			itemlist += "~ITEMID~";
		}
		itemlist += imagename[i].value + "~SX~" + hbusitype[i].value + "~BI~" + chkView[i].value;
	    }
	}
  }

  if (itemlist != "") {
	var appletWinURL = "<%=request.getContextPath()%>/ImageQuery/AppletPrint.jsp?ItemIDList=" + itemlist;
	try{
		parent.parent.opener.parent.parent.parent.topfrm.printDoc(itemlist, "true", appletWinURL);
	}catch(e){
		try{
			parent.parent.parent.parent.topfrm.printDoc(itemlist, "true", appletWinURL);
		}catch(e){
			printDoc(itemlist, "true", appletWinURL);
		}
	}
  }
  else {
	alert("请选择需要打印的影像！");
  }
}


//---------------------------------------------------
//kaka 预加载影像查看组件
//kaka 预加载影像查看组件

	var imgObjDiv2 = document.getElementById("imgObjDiv2");
	imgObjDiv2.innerHTML = "<object id='imageDisplay2' classid='clsid:DF02961E-E2F3-41a6-AACB-010EF4A90F9F'></object>";

	function showImage_newObject2(strPid, busiType){
		var imageDisplay;
		var str = "";
		str = busiType + "," + strPid;

		try{
			if (str!=",") {
				imageDisplay = document.getElementById("imageDisplay2");
				imageDisplay.OpenDisplayFile(str, "<%=imgServerUrl%>", 1);
			}
		}catch(e){
			alert("页面加载错误："+e);
		}
	}
</script>
